import Vue from 'vue'
// import VueRouter from 'vue-router'
import VueRouter from '../vuerouter'

Vue.use(VueRouter)

const routes = [
  {
    path: '/index',
    component: () => import('../components/Index')
  },
  {
    path: '/detail',
    component: () => import(/* webpackChunkName: "detail" */'../components/Detail')
  }
]
const router = new VueRouter({
  // base: process.env.BASE_URL,
  routes
})

export default router
